entry {
    ui::interact-with-window {
        title: { const 'TextView Demo' },
        content: Root,
        assets: [StyleSheet],
        on-close: { Some { sys::exit 0 } }
    }
};
asset StyleSheet: AssetCSS 'assets/style.css';

const Root: ui::Component
    \ use let buf := { ui::State::[String] 'lorem ipsum' },
    { { ui::Box [] } [
        { { ui::Box ['row'] } [
            ({ ui::TextView buf } with { ui::Style ['line-edit'] }),
            { ui::Button ('Clear', (buf.in <- '')) }
        ] }
    ] };
